﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Apply
{
    /// <summary>
    /// BooksUC.xaml 的交互逻辑
    /// </summary>
    public partial class BooksUC : UserControl
    {
        public BooksUC()
        {
            InitializeComponent();
        }

        private void AddBook(object sender, RoutedEventArgs e)
        {
            ((this.FindResource("books") as ObjectDataProvider).Data as IList<Book>).Add(new Book("我是新增的标题", "我是新增的出版社", "nnn-nnn-nnnn", "我是新增的作者"));
        }
    }
}
